package com.kireeti.mainPackage;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.kireeti.springBeans.Bean1;
import com.kireeti.springBeans.InterFace1;
import com.kireeti.springBeans.ListBean;

public class Init {
	
	

	public static void main(String[] args)
	{
		ApplicationContext context=new ClassPathXmlApplicationContext("SpringConfig.xml");
		//Bean1 demo
		//		Bean1 b1=(Bean1) context.getBean("bean1");
		//		b1.print();
		//listbean demo
		ListBean lb1=(ListBean)context.getBean("listBean");
		System.out.println(lb1.getList1().toString());
		
	}
}
